<?php

/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */
$matchs = [];
$errorCode = 500;
$errorMsg = "server error!";
if(preg_match("/(.*)\(#(\d+)\)/i", $name, $matchs)){
    $errorCode = $matchs[2];
    $errorMsg = $matchs[1];
    $this->title = $errorCode . " page";
    $this->subTitle = $errorMsg;
}


$this->title = $name;
?>
<div class="section-header">
    <h3 class="text-standard"><i class="fa fa-fw fa-arrow-circle-right text-gray-light"></i> <?=$this->title?> <small><?=$this->subTitle?></small></h3>
</div>
<div class="section-body contain-lg">
    <div class="row">
        <div class="col-lg-12 text-center">
            <h1 class="text-huge"><?=$errorCode?> <i class="fa fa-search-minus text-primary"></i></h1>
            <h2 class="text-light"><?=$errorMsg?></h2>
        </div><!--end .col-lg-12 -->
    </div><!--end .row -->
</div>
<?php
if($errorCode == 404)
    echo <<<SEARCH
<section>
    <div class="section-body contain-sm">
        <div class="input-group">
            <span class="input-group-addon"><i class="fa fa-search"></i></span>
            <input type="text" class="form-control" placeholder="You're searching for...">
            <span class="input-group-btn"><button class="btn btn-primary" type="submit">Find</button></span>
        </div>
    </div><!--end .section-body -->
</section>
SEARCH;

?>
